#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

//struct Student
//{
//	char name[20];
//	char sex[5];
//	int age;
//	char address[30];
//}stu, stu1[10], * p1;
//
//struct Student s1, sp1[10], * p2;
//
//int main()
//{
//	struct Student s2, sp2[10], * p3;
//
//	return 0;
//}

#include <stdio.h>

typedef struct Student
{
	char name[20];
	char sex[5];
	int age;
	char address[30];
}Stu;

int main()
{
	Stu p = { 0 };
	scanf("%s %s %d %s", p.name, p.sex, &p.age, p.address);

	Stu* pp = &p;
	printf("%s %s %d %s\n", p.name, p.sex, p.age, p.address);
	printf("%s %s %d %s\n", pp->name, pp->sex, pp->age, pp->address);

	return 0;
}